import Game from "../script/Game";
import Over from "../script/Over";
import Rank from "../script/Rank";
import Welcome from "../script/Welcome";

export default class LayerStatic {
    private static _instance: LayerStatic = null;

    public static get Instance(): LayerStatic {
        this._instance = this._instance || new LayerStatic();
        return this._instance;
    }

    public static WelcomeStatic: Welcome = null;
    public static GameStatic: Game = null;
    public static OverStatic: Over = null;
    public static RankStatic: Rank = null;

    public setWelcomeStatic(tagert: Welcome) {
        LayerStatic.WelcomeStatic = tagert;
    }

    public setGameStatic(tagert: Game) {
        LayerStatic.GameStatic = tagert;
    }

    public setOverStatic(tagert: Over) {
        LayerStatic.OverStatic = tagert;
    }

    public setRankStatic(tagert: Rank) {
        LayerStatic.RankStatic = tagert;
    }
}
